package com.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
@Data//setter getter
@NoArgsConstructor//空参
@AllArgsConstructor//全参
@ToString//toString
@TableName("service_order")
public class ServiceOrder {
    private int id;
    private String username;    //订单发起用户id
    private int cid;    //用户下单的小区id
    private int iid;    //用户选择的服务项目id
    private int mid;    //商家id
    private String content; //用户填写的详细服务内容
    private String appointmentTime; //客户选择的预约时间
    private String appointmentAddress;  //客户预约的上门地址
    private BigDecimal price;   //订单金额
    private String orderno;       //订单编号
    private String ordertime;       //订单日期
    private Date appointmentdate;
    private int status; //状态 0未支付 1已支付 2申请退款 3取消退款 4退款完成
    private ServiceMerchant serviceMerchant;
    private String contactmethod;  //联系方式，电话，称呼等
    private ServiceItem serviceItem;

}
